#!/usr/bin/env python
#coding:utf-8

from Backend.Mvc.Controllers.Controller import BaseController
from Backend.Mvc.Forms.FormBinds import FormBinder
from Form.Login import LoginForm 


class HomeController(BaseController):
    
    @FormBinder.FormBind(LoginForm)
    def get(self, *args, **kwargs):
        print self.FomrsInstance[str(LoginForm)].FormInstance.UserName
        self.write('ok')
        
    
    def post(self, *args, **kwargs):
        pass
    
    def put(self, *args, **kwargs):
        pass
    
    def delete(self, *args, **kwargs):
        pass
    

    
    